package com.soilflow.web.controller.soilflow;

import com.soilflow.common.core.controller.BaseController;
import com.soilflow.common.core.domain.AjaxResult;
import com.soilflow.common.core.page.TableDataInfo;
import com.soilflow.common.domain.LandFund;
import com.soilflow.common.domain.vo.LandContractVo;
import com.soilflow.info.service.LandFundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/land/fund")
public class LandFundController extends BaseController {
    @Autowired
    private LandFundService landFundService;

    @GetMapping("/select")
    public TableDataInfo select(LandFund landFund){
        startPage();
        System.out.println("landFund = " + landFund);
        List<LandFund> list = landFundService.selectLandFund(landFund);
        return getDataTable(list);
    }

}
